<div class="modal-header" id="scope">
	<h3 class="modal-title" ng-if="param.type == 'insert'">新增</h3>
	<h3 class="modal-title" ng-if="param.type == 'update'">修改</h3>
</div>
<div class="modal-body">
	<form name="myForm" class="form-horizontal form-validation">
		<div class="panel panel-default">
			<div class="panel-body">
				<div class="form-group">
					<label class="col-sm-3 control-label"><span style="color: red; text-align: center;" >* &nbsp</span>角色编码：</label>
					<div class="col-sm-7">
						<input type="text" class="form-control" placeholder="编码" ng-model="param.data.code" ng-readonly="param.type=='update'" ng-pattern="/^[A-Z_]+$/"
							required/>
					</div>
				</div>
				<div class="form-group" ng-show="flag">
					<label class="col-sm-3 control-label">角色编码格式：</label>
					<p class="col-sm-7" style="margin-top: 7px;margin-left: 5px">必须由大写字母和下划线组成，开头必须为ROLE。例：ROLE_STAFF</p>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label"><span style="color: red; text-align: center;" >* &nbsp</span>角色名称：</label>
					<div class="col-sm-7">
						<input type="text" class="form-control" placeholder="名称" ng-model="param.data.name" required/>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label"><span style="color: red; text-align: center;" >* &nbsp</span>角色描述：</label>
					<div class="col-sm-7">
						<input type="text" class="form-control" placeholder="描述" ng-model="param.data.description" required/>
					</div>
				</div>
			</div>
			<footer class="panel-footer text-right bg-light lter">
				<button class="btn btn-default" type="button" ng-click="cancel()">取消</button>
				<button type="submit" class="btn btn-success" ng-click="ok()">提交</button>
			</footer>
		</div>
	</form>
</div>